#include <QDialog>
#include <QWidget>
#include <QVBoxLayout>
#include <QCheckBox>
#include <QLabel>
#include <QScrollArea>
#include <QPushButton>
#include <QGroupBox>
#include <QRadioButton>
#include <QAction>
#include "MyWidget.h"

class MySettings : public QDialog
{
    Q_OBJECT
public:
    MySettings(QWidget *parent = 0);
    void ReadSettings();
    void SaveSettings();
private:
    void SetBackgroundImage();
    void AppendOnFileL(QString filename, QString text);
private:
    QWidget *iParent;
    MyWidget ParentClass;
    QGroupBox *groupBox;
    QLabel *label;
    QScrollArea *scroll;
    QPushButton *checkallButton;
    QPushButton *uncheckallButton;
    QPushButton *okButton;
    QPushButton *backButton;
    QGridLayout *layout;
    QAction* backButtonMenu;
    QVBoxLayout *vbox;
    QCheckBox *sms;
    QCheckBox *profilesettings;
    QCheckBox *alarmsounds;
    QCheckBox *browserbookmark;
    QCheckBox *calendar;
    QCheckBox *appshelldata;
    QCheckBox *accesspoint;
    QCheckBox *cookies;
    QCheckBox *t9dictionary;
    QCheckBox *contacts;
    QCheckBox *contactsindex;
    QCheckBox *notes;
    QCheckBox *btregistry;
    QCheckBox *speeddial;
    QCheckBox *alarmserver;
    QCheckBox *shortcutsbar;
    QCheckBox *calllog;
    QCheckBox *positions;
private:
    QCheckBox *bestscreensnap;
    QCheckBox *besttimer;
    QCheckBox *powerboot;
    QCheckBox *ramblow;
    QCheckBox *photoviewer;
    
private slots:
    void save();
    void checkAll();
    void uncheckAll();
    void check();
    void OnlyClose();
};
